FROM openjdk:8-jre
WORKDIR /app/logs/
ADD ./target/*.jar /app/
EXPOSE 8081
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
# 更新软件包列表并安装所需软件
RUN echo "deb http://mirrors.aliyun.com/debian/ bullseye main" > /etc/apt/sources.list \
    && echo "deb http://mirrors.aliyun.com/debian-security/ bullseye-security main" >> /etc/apt/sources.list \
    && apt-get clean \
    && apt-get update \
    && apt-get install -y dmidecode fdisk iputils-ping


RUN chmod +x /app/jeeplus-vue.jar
ENTRYPOINT ["java","-Xmx2048m","-jar"]
CMD ["/app/jeeplus-vue.jar","--server.port=8081"]